package com.test;

public class Dog extends Animal {

    public void eat(){
        System.out.println("狗吃骨头");
    }
    public void speak(){
        int y = super.y;
        int y1 = this.y;
//        super.eat();
//        this.eat();
//        System.out.println("狗叫");
        System.out.println(y);
        System.out.println(y1);
        System.out.println(super.getName());
    }


}
